﻿<Grid x:Class="LogInFrontPage"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" d:DesignHeight="450" d:DesignWidth="800" Margin="5,20,0,0" Loaded="Grid_Loaded_1">
    <Image Width="128" Height="128" Source="password.png" VerticalAlignment="Top" HorizontalAlignment="Left"/>
    <StackPanel Margin="148,0,0,0" Name="nouser" Visibility="Collapsed">
        <TextBlock FontFamily="Segoe UI Light, Lucida Sans Unicode, Verdana" FontSize="20" TextWrapping="Wrap">Dieses Programm unterstützt mehrere Benutzer mit Nutzungseinschränkungen. Tragen Sie in die unteren Felder die Daten für den Nutzer ein, der alle Lese- und Schreibberechtigungen erhält:</TextBlock>
        <StackPanel Orientation="Horizontal" Margin="0,10,0,0">
            <TextBlock FontFamily="Segoe UI Light, Lucida Sans Unicode, Verdana" FontSize="20" Width="100" Margin="0,0,10,0">Name: </TextBlock>
            <TextBox FontFamily="Segoe UI Light, Lucida Sans Unicode, Verdana" FontSize="20" Width="200" Name="Textbox1"/>
        </StackPanel>
        <StackPanel Orientation="Horizontal" Margin="0,5,0,0">
            <TextBlock FontFamily="Segoe UI Light, Lucida Sans Unicode, Verdana" FontSize="20" Width="100" Margin="0,0,10,0">ID:</TextBlock>
            <TextBox FontFamily="Segoe UI Light, Lucida Sans Unicode, Verdana" FontSize="20" Width="200" Name="Textbox3"/>
        </StackPanel>
        <StackPanel Orientation="Horizontal" Margin="0,5,0,0">
            <TextBlock FontFamily="Segoe UI Light, Lucida Sans Unicode, Verdana" FontSize="20" Width="100" Margin="0,0,10,0">Passwort:</TextBlock>
            <PasswordBox FontFamily="Segoe UI Light, Lucida Sans Unicode, Verdana" FontSize="20" Width="200"  Name="Textbox2"/>
        </StackPanel>
        <TextBlock FontFamily="Segoe UI Light, Lucida Sans Unicode, Verdana"  FontSize="20" Margin="0,5,10,0" Cursor="Hand" Foreground="Blue" MouseUp="TextBlock_MouseUp_1">Speichern</TextBlock>
    </StackPanel>
    <StackPanel Margin="148,0,0,0" Name="loginsp" Visibility="Collapsed">
        <TextBlock FontFamily="Segoe UI Light, Lucida Sans Unicode, Verdana" FontSize="20" TextWrapping="Wrap">Loggen Sie sich ein:</TextBlock>
        <StackPanel Orientation="Horizontal" Margin="0,5,0,0">
            <TextBlock FontFamily="Segoe UI Light, Lucida Sans Unicode, Verdana" FontSize="20" Width="100" Margin="0,0,10,0">Name:</TextBlock>
            <TextBox FontFamily="Segoe UI Light, Lucida Sans Unicode, Verdana" FontSize="20" Width="200" Name="LogInTextbox1"/>
        </StackPanel>
        <StackPanel Orientation="Horizontal" Margin="0,5,0,0">
            <TextBlock FontFamily="Segoe UI Light, Lucida Sans Unicode, Verdana" FontSize="20" Width="100" Margin="0,0,10,0">Passwort:</TextBlock>
            <PasswordBox FontFamily="Segoe UI Light, Lucida Sans Unicode, Verdana" FontSize="20" Width="200" Name="LogInTextbox2"/>
        </StackPanel>
        <TextBlock FontFamily="Segoe UI Light, Lucida Sans Unicode, Verdana" FontSize="20" Margin="0,5,10,0" Foreground="Red" Visibility="Collapsed" Name="Loginfailedlbl">Falsche Kombination von Name und Passwort</TextBlock>
        <TextBlock FontFamily="Segoe UI Light, Lucida Sans Unicode, Verdana" FontSize="20" Margin="0,5,10,0" Cursor="Hand" Foreground="Blue" MouseUp="TextBlock_MouseUp_2">Anmelden</TextBlock>
    </StackPanel>
    <StackPanel Margin="148,0,0,0" Name="loggedinassp" Visibility="Visible" Opacity="0">
        <TextBlock FontFamily="Segoe UI Light, Lucida Sans Unicode, Verdana" FontSize="20" TextWrapping="Wrap">Angemeldet als <Run Name="r1"/></TextBlock>
        <TextBlock FontFamily="Segoe UI Light, Lucida Sans Unicode, Verdana" FontSize="20" Margin="0,5,10,0" Cursor="Hand" Foreground="Blue" Text="Abmelden" MouseUp="TextBlock_MouseUp_3"/>
    </StackPanel>
    <Grid.Resources>
        <ResourceDictionary>
            <Storyboard x:Key="newuserout">
                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="nouser">
                    <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1" />
                    <SplineDoubleKeyFrame KeyTime="00:00:00.400" Value="0" />
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)" Storyboard.TargetName="nouser">
                    <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0" />
                    <EasingDoubleKeyFrame KeyTime="00:00:00.700" Value="30">
                        <EasingDoubleKeyFrame.EasingFunction>
                            <CubicEase EasingMode="EaseOut" />
                        </EasingDoubleKeyFrame.EasingFunction>
                    </EasingDoubleKeyFrame>
                </DoubleAnimationUsingKeyFrames>
            </Storyboard>
            <Storyboard x:Key="loginout">
                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="loginsp">
                    <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1" />
                    <SplineDoubleKeyFrame KeyTime="00:00:00.400" Value="0" />
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)" Storyboard.TargetName="loginsp">
                    <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0" />
                    <EasingDoubleKeyFrame KeyTime="00:00:00.700" Value="30">
                        <EasingDoubleKeyFrame.EasingFunction>
                            <CubicEase EasingMode="EaseOut" />
                        </EasingDoubleKeyFrame.EasingFunction>
                    </EasingDoubleKeyFrame>
                </DoubleAnimationUsingKeyFrames>
            </Storyboard>
            <Storyboard x:Key="loggedinassb">
                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="loggedinassp">
                    <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0" />
                    <SplineDoubleKeyFrame KeyTime="00:00:00.400" Value="1" />
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)" Storyboard.TargetName="loggedinassp">
                    <SplineDoubleKeyFrame KeyTime="00:00:00" Value="30" />
                    <EasingDoubleKeyFrame KeyTime="00:00:00.700" Value="0">
                        <EasingDoubleKeyFrame.EasingFunction>
                            <CubicEase EasingMode="EaseOut" />
                        </EasingDoubleKeyFrame.EasingFunction>
                    </EasingDoubleKeyFrame>
                </DoubleAnimationUsingKeyFrames>
            </Storyboard>
        </ResourceDictionary>
    </Grid.Resources>
</Grid>
